// import {request} from "umi";
// import Fly from 'flyio';
// import { stringify, request, apiUrlfun } from '../config';
import {request} from "@/services/request";

export async function getApplyOrgs() {
    return request.post("https://138j795s06.vicp.fun/dy/api", {
        name: "ding.my.orgs",
        version:"1.0",
        data: {

        },
        jwt: sessionStorage.getItem("jwt")
    })
}

export async function getManageOrgs() {
    return request.post("https://138j795s06.vicp.fun/dy/api", {
        name: "ding.manage.orgs",
        version:"1.0",
        data: {
            keyword: ''
        },
        jwt: sessionStorage.getItem("jwt")
    })
}

export async function getManageDepts() {
    return request.post("https://138j795s06.vicp.fun/dy/api", {
        name: "ding.manage.depts",
        version:"1.0",
        data: {
            keyword: ''
        },
        jwt: sessionStorage.getItem("jwt")
    })
}

export async function getProjects(orgId) {
    return request.post("https://138j795s06.vicp.fun/dy/api", {
        name: "ding.projects",
        version:"1.0",
        data: {
            orgId: orgId,
            keyword: ''
        },
        jwt: sessionStorage.getItem("jwt")
    })
}

// 获取商品列表
/*export async function rtsGetCommodityList(params) {
    return request(`${apiUrlfun('mall')}/v1/commodities?${stringify(params)}`);
}*/
/*



// 获取一级类目
export async function rtsGetCategorysList(params) {
    return request(`${apiUrlfun('mall')}/v1/categories?${stringify(params)}`);
}

// 获取二级类目
export async function rtsGetSubcategories(params) {
    return request(`${apiUrlfun('mall')}/v1/subcategories?${stringify(params)}`);
}*/
